<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	<meta http-equiv="Cache-Control" content="no-siteapp"/>
	<link rel="Bookmark" href="imgs/bai.ico">
	<link rel="Shortcut Icon" href="imgs/bai.ico"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css"/>
	<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css"/>
	<title>管理后台</title>
	<style type="text/css">
		.select { margin-left: 20px; padding: 5px 10px; }
	</style>
</head>
<body>
<!--顶部-->
<header class="navbar-wrapper"></header>
<!--左侧菜单-->
<aside class="Hui-aside">
	<div class="menu_dropdown bk_2" id="leftMenu"></div>
</aside>

<!--右侧内容框架-->
<section class="Hui-article-box">
	<nav class="breadcrumb">
		<a href="javascript:;" class="maincolor" onclick="toHome();">
			<i class="Hui-iconfont">&#xe67f;</i>
			首页
		</a>
		<span class="c-gray en">&gt;</span>二维码
	</nav>
	<div class="Hui-article">
		<article class="cl pd-20">
			<div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l">
					<a href="javascript:;" class="btn btn-primary radius" onclick="viewAdd();">
						<!--<i class="Hui-iconfont">&#xe600;</i>-->
						批量生成
					</a>
				</span>
				<span class="l" style="margin-left: 10px;">
					<select class="select" id="use" onchange="useSearch(this.value);">
						<option value="0">所有状态</option>
						<option value="1">未使用的</option>
						<option value="2">已使用的</option>
					</select>
				</span>
				<span class="r">共有数据：<strong id="pageTotal">0</strong> 条</span>
			</div>
			<div class="mt-20">
				<table class="table table-border table-bordered table-hover table-bg table-sort">
					<thead>
					<tr class="text-c">
						<th width="50">ID</th>
						<th width="100">码值</th>
						<th width="100">码编号</th>
						<th width="100">业务ID</th>
						<th width="100">操作</th>
					</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
				<div id="pageHtml"></div>
			</div>
		</article>
	</div>
</section>

<!-- 二维码弹窗 -->
<span id="qrHtml"></span>
<!-- msg弹窗 -->
<span id="msgPop"></span>
</body>
</html>


<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript" src="js/view.js"></script>
<script type="text/javascript" src="js/qr.js"></script>
<script type="text/javascript" src="js/ewm/jquery.qrcode.js"></script>
<script type="text/javascript" src="js/ewm/utf.js"></script>
<script type="text/javascript" src="js/ewm/html2canvas.min.js"></script>
<script type="text/javascript" src="js/ewm/FileSaver.js"></script>
<script type="text/javascript">
	var pages = {
		start: 1, limit: pageSize,
		url: '/admin/qr.html'
	};
	var isuse = getParamByUrl('isuse');
	(function () {
		getIndex();
	})();
	//搜索
	function useSearch(v){
		var url = pages.url;
		url += '?isuse=' + v;
		window.location.href = url;
	}
</script>